import { actorCalled, Duration } from '@serenity-js/core';
import { Wait } from '@serenity-js/webdriverio';
import { useSystemAs } from '../../src/screenplay/abilities';
import { Login } from '../../src/screenplay/interactions';

describe('Login page', () => {
  it('logs user in', () =>
    actorCalled('Joey')
      .whoCan(useSystemAs('Sales'))
      .attemptsTo(Login.viaLoginPage(), Wait.for(Duration.ofSeconds(5))));

  it('shows error if creds are incorrect');
});
